package com.chris.websocket.webdemo.dto;

import javax.websocket.Session;

/**
 * 客服端session
 */
public class WebSocketDTO {
    //接收sid
    private String sid="";

    private String name="";
    //与某个客户端的连接会话，需要通过它来给客户端发送数据
    private Session session;

    public WebSocketDTO(String sid,Session session)
    {
        this.sid=sid;
        this.session=session;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }
}
